package attr

import (
	"time"
)

const SettingAttrGroupName = "setting_attr_group"

type AttrParam struct {
	Label string `json:"label"`
	Type  string `json:"type"`
}

type SettingAttrGroup struct {
	Id   int    `json:"id" orm:"auto" sql:"INT"`
	Name string `json:"name" sql:"VARCHAR"`

	Type         byte        `json:"type" sql:"TINYINT"`
	VarLength    byte        `json:"varLength" sql:"TINYINT"`
	LogicList    []AttrLogic `json:"logicList" sql:"JSON"`
	RuntimeParam []AttrParam `json:"runtimeParam" sql:"JSON"`

	UpdateTime *time.Time `json:"update_time" orm:"updateTime" sql:"DATETIME"`
}
